home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / circuits / irsim_ta.z / irsim_ta / irsim / src / include / defs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-09-13  |  1.3 KB  |  47 lines

  1. /* 
  2.  *     ********************************************************************* 
  3.  *     * Copyright (C) 1988, 1990 Stanford University.                     * 
  4.  *     * Permission to use, copy, modify, and distribute this              * 
  5.  *     * software and its documentation for any purpose and without        * 
  6.  *     * fee is hereby granted, provided that the above copyright          * 
  7.  *     * notice appear in all copies.  Stanford University                 * 
  8.  *     * makes no representations about the suitability of this            * 
  9.  *     * software for any purpose.  It is provided "as is" without         * 
  10.  *     * express or implied warranty.  Export of this software outside     * 
  11.  *     * of the United States of America may require an export license.    * 
  12.  *     ********************************************************************* 
  13.  */
  14.  
  15.     /* Global definitions used by all modules */
  16.  
  17. #define    or    ||
  18. #define    and    &&
  19. #define    not    !
  20.  
  21. #define    private    static
  22. #define    public
  23.  
  24. extern    int    atoi();
  25.  
  26. #ifdef host_mips
  27. extern    double    atof(char *);
  28. #else
  29. extern    double    atof();
  30. #endif
  31.  
  32. #define SWAP( TYPE, A, B )        \
  33.   {                    \
  34.     register TYPE TMP;            \
  35.                     \
  36.     TMP = (A);                \
  37.     (A) = (B);                \
  38.     (B) = TMP;                \
  39.   }                    \
  40.  
  41.  
  42. #ifdef SYS_V
  43. #    define    bcopy( A, B, C )    memcpy( B, A, C )
  44. #    define    bcmp( A, B, C )        memcmp( B, A, C )
  45. #endif
  46.  
  47.